import Vue from "vue";
import VueRouter from 'vue-router'
// @ 代表src路径
import Layout from '@/views/Layout'


const routes = [
    {
        path:'/',
        redirect:'/layout'
    },
    {
        path: '/layout',
        component: Layout,
    },
   
]

Vue.use(VueRouter)

const router = new VueRouter({
    routes
})

export default router